package com.neuedu.dbutil.entity;

import com.neuedu.dbutil.TableColumn;

import java.util.Date;

/**
 * @auth 金山老师
 * title:   书籍代码
 * creatime: 2022-10-12 11:08
 * 描述 : 角色实体类
 */
public class Role {

    @TableColumn(name="role_id")
    private Integer roleId;

    //role_name
    @TableColumn(name="role_name")  //数据库中的字段
    private String roleName;

    private Integer active;
    private Date createtime;

    public Role() {
    }

    public Role(Integer roleId, String roleName, Integer active, Date createtime) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.active = active;
        this.createtime = createtime;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", active=" + active +
                ", createtime=" + createtime +
                '}';
    }
}
